package com.anycl.design.behavioral.visitor.instance;

import java.util.Arrays;
import java.util.Collections;

public class Main {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.showFileAndFolder(new NormalVisitor(Collections.singletonList("file")));
        computer.showFileAndFolder(new RootVisitor());
        computer.showFileAndFolder(new NormalVisitor(Arrays.asList("file", "folder")));
    }
}
